import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPublicMiniPlayerHelper } from "./SeqPublicMiniPlayerHelper";
import { SCopyFindPlayer } from "./SCopyFindPlayer";
type int = number;
//class SCopyPlayerRet
    
    export  class SCopyPlayerRet extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyPlayerRet();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.find.__write(arg1);
            arg1.writeInt(this.totalCount);
            SeqPublicMiniPlayerHelper.write(arg1, this.players);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.find = new SCopyFindPlayer();
            this.find.__read(arg1);
            this.totalCount = arg1.readInt();
            this.players = SeqPublicMiniPlayerHelper.read(arg1);
            return;
        }

        public /* const */_type: int=20422;

        public /* var */find: SCopyFindPlayer;

        public /* var */totalCount: int;

        public /* var */players: Array<any>;

        public static /* var */_regist: SCopyPlayerRet;
    }

            SCopyPlayerRet._regist = new SCopyPlayerRet(true);
        